package org.springblade.oa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 福利费表
 */
@Data
@TableName("blade_welfare")
@EqualsAndHashCode(callSuper = true)
public class Welfare extends BaseEntity {
	private static final long serialVersionUID = 1L;


	/**
	 * 主键id
	 */
	@TableId(value = "id", type = IdType.AUTO)
	@ApiModelProperty(value = "主键id")
	private Integer id;

	/**
	 * 费用日期
	 */
	@JsonFormat(pattern = "yyyy-MM")
	@DateTimeFormat(pattern = "yyyy-MM")
	@ApiModelProperty(value = "费用日期")
	private Date fyDate;

	/**
	 * 费用类型
	 * NOT NULL
	 */
	private String fyType;

	/**
	 * 费用标准
	 * NOT NULL
	 */
	private String fyStandard;

	/**
	 * 报销金额
	 */
	private BigDecimal bxAmount;

	/**
	 * 发票金额
	 */
	private BigDecimal fpAmount;

	/**
	 * 备注
	 */
	private String remark;
}
